package com.mdd.front.controller;

import com.mdd.common.core.AjaxResult;
import com.mdd.front.service.decorate.IDecoratePageService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

/**
 * 页面装修管理
 */
@RestController("decoratePagesController")
@RequestMapping("api/decorate/pages")
public class PagesController {

    @Resource
    IDecoratePageService iDecoratePageService;

    /**
     * 页面装修详情
     *
     * @author fzr
     * @return Object
     */
    @GetMapping("/service")
    public Object detail() {
        Map<String, Object> map = iDecoratePageService.service();
        return AjaxResult.success(map);
    }
}
